/* 
 * File:   ColorRGB.cpp
 * Author: agu
 * 
 * Created on 18 de mayo de 2014, 17:43
 */

#include "Color.h"
Color::Color(){
}
Color::Color(SDL_Color color) {
    this->color = color;
}

Color::Color(const Color& orig) {
    this->color = orig.color;
}

Color::~Color() {
}

Uint8 Color::getRedCode() {
    return this->color.r;
}

Uint8 Color::getGreenCode() {
    return this->color.r;
}

Uint8 Color::getBlueCode() {
    return this->color.r;
}

Color Color::white() {
    SDL_Color white = {0xFF, 0xFF, 0xFF, 0xFF};
    return Color(white);
}

Color Color::blue() {
    SDL_Color blue = {0, 0, 0xFF, 0xFF};
    return Color(blue);
}

Color Color::red() {
    SDL_Color red = {0xFF, 0x00, 0x00, 0xFF};
    return Color(red);
}

Color Color::green() {
    SDL_Color green = {0x00, 0xFF, 0x00, 0xFF};
    return Color(green);
}

Color Color::black() {
    SDL_Color black = {0x00, 0x00, 0x00, 0xFF};
    return Color(black);
}

SDL_Color Color::getColorSDL(){
    return this->color;
}